﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Quiz.aspx.cs" Inherits="ThangNM.Quiz" MasterPageFile="~/PublicInterface/Home_New.Master" %>
<%@ Register src="~/UserControl/Vote_Share_CommentUC.ascx" tagname="Vote_Share_CommentUC" tagprefix="uc11" %>
<%@ Register src="UserControl/MsgUC.ascx" tagname="MsgUC" tagprefix="uc1" %>
<%@ Register src="~/UserControl/AdsMainUC.ascx" tagname="AdsMainUC" tagprefix="uc2" %>

<asp:Content ID="cBody" ContentPlaceHolderID="cphBody" runat="server">
<asp:UpdatePanel ID="udpQuiz" runat="server" UpdateMode="Conditional">
    <ContentTemplate><br />
        <uc1:MsgUC ID="MsgUC1" runat="server" />
        <asp:UpdateProgress ID="udpWait" runat="server" AssociatedUpdatePanelID="udpQuiz">
            <ProgressTemplate>
                <center><img src="http://nguyenmanhthang.net/App_Themes/Images/loading.gif" alt="Loading...."/></center>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:MultiView ID="mtvMain" runat="server" ActiveViewIndex="0">
            <asp:View ID="vOption" runat="server">
                <table id="tblDetail" class="form-group">
	                <tr>
                        <td>
                            <div class="form-group input-group">
			                    <asp:Label id="lbliLevel" runat="server" class="input-group-addon title_input" Text="Cấp độ:"></asp:Label>
                                <asp:DropDownList ID="ddliLevel" runat="server" Width="500px" class="form-control" autocomplete="off">
                                    <asp:ListItem Value="1">1</asp:ListItem>
                                    <asp:ListItem Value="2">2</asp:ListItem>
                                    <asp:ListItem Value="3">3</asp:ListItem>
                                </asp:DropDownList>
                            </div>
		                </td>
	                </tr>
	                <tr>
                        <td>
                            <div class="form-group input-group">
			                    <asp:Label id="lbliQuantity" runat="server" class="input-group-addon title_input" Text="Số lượng câu hỏi:"></asp:Label>
                                <asp:DropDownList ID="ddliQuantity" runat="server" Width="500px" class="form-control" autocomplete="off">
                                    <asp:ListItem Value="2">2</asp:ListItem>
                                    <asp:ListItem Value="15">15</asp:ListItem>
                                    <asp:ListItem Value="20">20</asp:ListItem>
                                </asp:DropDownList>
                            </div>
		                </td>
	                </tr>
                    <tr>
                        <td align="center">
                            <asp:Button ID="btnOK" runat="server" Text="[Alt+O] OK" class="btn btn-primary" OnClick="btnOK_Click" AccessKey="O" />
                        </td>
                    </tr>
                </table>
            </asp:View>
            <asp:View ID="vQuiz" runat="server">
                <asp:Timer ID="tClock" runat="server" Interval="1000" OnTick="tClock_Tick" Enabled="false"></asp:Timer>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <asp:HiddenField ID="hfPK_iQuizID" runat="server"/>
                        <h3><asp:Literal ID="lblsConten" runat="server"></asp:Literal></h3>
                    </div>
                    <div class="panel-body text_default" style="min-height:250px;max-height:500px;height:auto">
                        <asp:CheckBoxList ID="cblChoose" runat="server" CssClass="checkboxlist_style"></asp:CheckBoxList>
                    </div>
                    <div class="panel-footer">
                        <div class="row">
                            <div class="col-md-3">
                                <asp:LinkButton ID="lbtnPrev" runat="server" class="btn btn-default btn-lg" style="float:left;" onclick="lbtnPrev_Click" ><i class="fa fa-arrow-circle-left" aria-hidden="true"></i> Câu hỏi trước</asp:LinkButton>
                            </div>
                            <div class="col-md-6">
                                <center><asp:Label ID="lblClock" runat="server" ForeColor="Red"></asp:Label></center>
                            </div>
                            <div class="col-md-3">
                                <asp:LinkButton ID="lbtnNext" runat="server" class="btn btn-default btn-lg" style="float:right;" onclick="lbtnNext_Click" >Câu hỏi tiếp theo <i class="fa fa-arrow-circle-right" aria-hidden="true"></i></asp:LinkButton>
                            </div>
                        </div>
                    </div>
                </div>
                <center>
                    <asp:Button ID="btnCheck" runat="server" Text="[Alt+C] Kiểm tra kết quả" class="btn btn-info btn-sm" OnClick="btnCheck_Click" OnClientClick="return confirm('Bạn có muốn xem kết quả bài thi này không?');" AccessKey="C"/>
                    <asp:Button ID="btnBack" runat="server" Text="[Alt+B] Thi lại" class="btn btn-warning btn-sm" OnClick="btnBack_Click" OnClientClick="return confirm('Bạn có muốn thi lại không?');" AccessKey="B"/>
                </center>
            </asp:View>
        </asp:MultiView>
    </ContentTemplate>
</asp:UpdatePanel><br /><br />
<uc2:AdsMainUC ID="AdsMainUC1" runat="server" EnableViewState="false" />
<asp:PlaceHolder ID="cphUC" runat="server" EnableViewState="false"></asp:PlaceHolder><br />
</asp:Content>